package com.thoughtful.remoting.dto;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author yushun
 * @createTime 2022/10/17 - 17:24
 **/
@Getter
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class RpcRequest implements Serializable {

    private static final long serialVersionUID = 5523495179554921067L;

    private String      requestId;

    private String      interfaceName;

    private String      methodName;

    private Object[]    parameters;

    private Class<?>[]  paramTypes;

    private String      version;

    private String      group;

    public String getRpcServiceName() {
        return this.getInterfaceName() + this.getGroup() + this.getVersion();
    }
}
